package com.example.yiqinmanagersystem.vo;

/**
 * @Description: 响应代码
 */
public enum ResponseCode {

    SUCCESS("200","操作成功"),
    FAILED("500","操作失败"),
    USER_NOT_LOGGED_IN("1001","请先登录"),
    USER_NOT_FOUND("1002","用户不存在"),
    PASSWORD_ERROR("1003","密码错误"),
    RECORD_NOT_FOUND("1004","暂时查询不到记录"),
    ARGUMENT_NOT_VALID("1005","参数校验错误"),
    ACCESS_DENIED("1006","没有权限访问"),
    UNKNOWN_ERROR("-1","出错啦,请检查输入是否合法");
    private String code;
    private String msg;

    ResponseCode(String code, String msg){
        this.code=code;
        this.msg=msg;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
